import 'package:flutter/material.dart';

class WrapTest extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("WrapTest"),
      ),
      //wrap 组件会从右往左排列，会换行
      body: Wrap(
        runSpacing: 40,
        runAlignment: WrapAlignment.end,
        direction: Axis.horizontal,
        children: Iterable.generate(10000,(i) => FlutterLogo()).toList(),
      ),
    );
  }
  
}